import { Injectable } from '@nestjs/common';
import { UserRegisterModel } from '../../model/dto/user.dto';
import { AuthService } from '@app/auth';

@Injectable()
export class UserService {
  constructor(private readonly authService: AuthService) {}

  // 注册
  register(query: UserRegisterModel) {
    return this.authService.getToken(query);
  }
  // login
  login(query: UserRegisterModel) {
    // this.authService.getToken;
    return this.authService.getToken(query);
  }
}
